// 资源引入
import request from '@/utils/request';
import API from '@/api/login';

/*
    @catalog    登录 - 注册 - 查询企业当前认证状态
*/
// 登录
export function login(query) {
    console.log('【登录接口】');
    let timestamp = new Date().getTime();
    return request({
        url: `${API.login}?timestamp=${timestamp}`,
        method: 'post',
        data: query
    })
}

// 注册
export function enterpriseRegister(data) {
    console.log('【注册接口】');
    let timestamp = new Date().getTime();
    return request({
        url: `${API.enterpriseRegister}?timestamp=${timestamp}`,
        method: 'post',
        data: data
    })
}

// 查询企业当前认证状态
export function queryEnterpriseCertificationStatus(data) {
    console.log('【企业认证状态接口】');
    let timestamp = new Date().getTime();
    return request({
        url: `${API.queryEnterpriseCertificationStatus}?timestamp=${timestamp}`,
        method: 'post',
        data: data
    })
}